package com.ruoyi.od_organizer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动发布对象 od_activity
 * 
 * @author 榛子
 * @date 2023-07-29
 */
public class Od_organizer_Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    @Excel(name = "活动ID")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 活动发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String title;

    /** 活动内容 */
    @Excel(name = "活动内容")
    private String content;

    /** 活动地点 */
    @Excel(name = "活动地点")
    private String location;

    /** 活动费用 */
    @Excel(name = "活动费用")
    private Long pay;

    /** 活动状态（1通过，2没通过） */
    @Excel(name = "活动状态", readConverterExp = "1=通过，2没通过")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setPay(Long pay) 
    {
        this.pay = pay;
    }

    public Long getPay() 
    {
        return pay;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("created", getCreated())
            .append("title", getTitle())
            .append("content", getContent())
            .append("location", getLocation())
            .append("pay", getPay())
            .append("status", getStatus())
            .toString();
    }
}
